<template>
  <div>
      <van-popup
      v-model="show"
      round
      :lock-scroll="true"
      position="bottom"
      :style= "{ height:'50%' }"
    >
      <div style="padding:.3125rem;position:relative;" v-for="item in goodsList" :key="item.id">
        <div class="v-content m-list" >
          <div class="left">
            <!-- <img :src="item.image" alt=""> -->
          </div>
          <div class="m-right">
            <div>{{item.name}}</div>
            <div class="price">
              <span>￥{{item.member_price}}</span>
              <!-- <span class="conpon">￥400</span> -->
            </div>
            <div class="buy">
              <van-button size="small" type="info" @click="buy(item.id)">立即购买</van-button>
            </div>
          </div>
        </div>
      </div>
    </van-popup>
  </div>
</template>
<script>
export default {
  data() {
    return {
      show: true,
      goodsList: [
        {id: 1,name: 1111},
        {id: 2,name: 1111},
        {id: 3,name: 1111},
        {id: 4,name: 1111},
        // {name: 11113333},
        // {name: 1111444455},
        // {name: 111155555},
      ]
    }
  },
  mounted() {
    // let _this = this;
    // sessionStorage.setItem('dlopenid', this.$route.query.dlopenid)
    // sessionStorage.setItem('gropenid', this.$route.query.gropenid)
    // sessionStorage.setItem('room_id', this.$route.query.room_id)
    // setTimeout(() => {
    //   console.log(123)
    //   this.$router.push({name: 'life'})
    // }, 500)
  }
}
</script>